package com.chinasoft04.mall.controller;

import com.chinasoft04.mall.dto.Result;
import com.chinasoft04.mall.pojo.Users;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class UserController {

    @PostMapping("/api/private/v1/login")
    public Result hello(){
        Users user = new Users(1, 1, "dazhen", "123456", "ngz2870178493@163.com", "???");
        return new Result().success(user, "登录成功");
    }
}
